import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { BlogModelProvider, DictionaryModelProvider } from '@server/models';

import { injectModules } from '@server/auth';
import { DatabaseModule } from '@server/modules/database/module';

import Controller from './controller';
import Service from './service';

@Module({
  imports: [...injectModules, ConfigModule, DatabaseModule],
  controllers: [Controller],
  providers: [
    BlogModelProvider,
    DictionaryModelProvider,
    Service
  ],
})
export default class BlogModule {}
